<% var i = 0; %>
<% if(data.length == 1){ %>
<div class="news_dd" data-id="<%= data[i].id %>">
    <a href="<%= global.config.contextPath + global.config.viewPrefix %>/newsDetail?id=<%= data[i].id %>">
    <ul data-newsId="<%= data[i].id %>">
        <li class="name"><%- data[i].name %></li>
        <li class="rq"><%= data[i].modifiedDate %></li>
        <li class="img"><img src="<%= '/yams-upload'+data[i].cover %>"></li>
        <li><%- data[i].remark %></li>
        <li class="more">阅读全文</li>
    </ul>
    </a>
</div>
<% }else if(data.length > 1){ %>
<div class="news">
    <ul class="bh">
        <% for(i = 0; i < data.length; i++){ %>
        <% if(i == 0){ %>
        <li class="img" style="width: 100%;">
            <a href="<%= global.config.contextPath + global.config.viewPrefix %>/newsDetail?id=<%= data[i].id %>">
                <img src="<%= '/yams-upload'+data[i].cover %>">
            </a>
            <div class="img_text"><%- data[i].name %></div>
        </li>
        <% }else{ %>
        <li class="line_gray bh">
            <a href="<%= global.config.contextPath + global.config.viewPrefix %>/newsDetail?id=<%= data[i].id %>">
            <div class="name">
                <div>
                    <span><%- data[i].name %></span>
                </div>
            </div>
            <div class="ms_img"><img src="<%= '/yams-upload'+data[i].cover %>"></div>
            </a>
        </li>
        <% } %>
        <% } %>
    </ul>
</div>
<% } %>

